package com.oig.sys.msg.api;

import com.oig.sys.msg.api.factory.TaskServiceFallbackFactory;
import com.oig.sys.msg.dto.TaskDto;
import com.oig.sys.msg.vo.TaskVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId="taskService", value="sys-msg-server", path="/task", fallbackFactory= TaskServiceFallbackFactory.class)
public interface TaskService {

    //@Operation(summary = "添加任务")
    @PostMapping(value = "/add")
    TaskVo addTask(@RequestBody TaskDto taskDto);

}
